<div class="w700 float_left">
        <div class="bg_tt1">
          <p class="tt p5t float_left">{{$cat.name}}</p>
          <!-- PANIVIGATION -->
        	{{if $countAllPages > 1}}
	          <div class="pages float_right">
	            <ul>
	              {{if $first}}
	              	<li><a href="?page=1"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_left1.png"/></a></li>
	              {{/if}}
	              {{if $prevPage}}
	              <li><a href="?page={{$prevPage}}"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_left1_1.png"/></a></li>
	              {{/if}}
	              {{foreach from=$prevPages item=item}}
	              	<li><a href="?page={{$item}}">{{$item}}</a></li>
	              {{/foreach}}
	              <li class="current"><a href="#">{{$currentPage}}</a></li>
	              
	              {{foreach from=$nextPages item=item}}
                  	<li><a href="?page={{$item}}">{{$item}}</a></li>
                  {{/foreach}}
	              
	              {{if $nextPage}}
	              	<li><a href="#"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_right1_1.png"/></a></li>
	              {{/if}}
	              {{if $last}}
	              	<li><a href="#"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_right1.png"/></a></li>
	              {{/if}}
	            </ul>
	            <div class="cb"></div>
	          </div>
	        <!-- END PANAVIGATION -->
          	{{/if}}
        </div>
        
        <div class="box_gallery ">
        	<ul>
        		{{foreach from=$allProducts item=block}}
        			<li>
        				{{foreach from=$block item=product}}
        				 <div class="w233 float_left">
        				 	<div class="box_pic_ks">
                     			<a class="full_image" href="{{$BASE_URL}}{{$product.full_main_image}}"><img src="{{$BASE_URL}}{{$product.main_image}}" width="218" height="136"/></a>
                     			{{if null != $product.sale_off}}
                     				<div class="bed">{{l}}Sale off{{/l}} {{$product.sale_off}}</div>
                     			{{/if}}
                     		</div>
                     		<div class=" p10t p11r">
                    			<p class="tt_ks"><a href="{{$product.link}}">{{$product.title}}</a></p>
                   				{{$product.intro_text}}
                   				{{if null != $product.sale_off}}
                    				<p class="bo_d_t m5t p5t">{{l}}From{{/l}} : <span class="color_yellow">{{$product.sale_off_start_date}}</span> {{l}}to{{/l}} <span class="color_yellow">{{$product.sale_off_end_date}}</span></p>
                    			{{/if}}
                    		</div>
        				 </div>
        				 {{/foreach}}
        				 <div class="cb"></div>
        			</li>
        		{{/foreach}}
            </ul>
        </div>
        
        
         <div class="cb"></div>
        
        
        <div class="bg_tt1_3">
    
          <!-- PANIVIGATION -->
        	{{if $countAllPages > 1}}
	          <div class="pages w310 float_right">
	            <ul>
	              {{if $first}}
	              	<li><a href="?page=1"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_left1.png"/></a></li>
	              {{/if}}
	              {{if $prevPage}}
	              <li><a href="?page={{$prevPage}}"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_left1_1.png"/></a></li>
	              {{/if}}
	              {{foreach from=$prevPages item=item}}
	              	<li><a href="?page={{$item}}">{{$item}}</a></li>
	              {{/foreach}}
	              <li class="current"><a href="#">{{$currentPage}}</a></li>
	              
	              {{foreach from=$nextPages item=item}}
                  	<li><a href="?page={{$item}}">{{$item}}</a></li>
                  {{/foreach}}
	              
	              {{if $nextPage}}
	              	<li><a href="#"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_right1_1.png"/></a></li>
	              {{/if}}
	              {{if $last}}
	              	<li><a href="#"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_right1.png"/></a></li>
	              {{/if}}
	            </ul>
	            <div class="cb"></div>
	          </div>
	        <!-- END PANAVIGATION -->
          	{{/if}}
        </div>
      </div>